//全局vuex 数据模块
const state = {
    //侧边菜单展开收起
    collapse: false,
  }
  
  const getters = {
  }
  const mutations = {
    // 点击改变菜单收缩
      TOOGGLE_COLLAPSE(state){
         state.collapse=!state.collapse
      },
      // 屏幕变化，菜单收缩
      SELL_COLLAPSE(state,payload){
          state.collapse=payload
      }
  }
  const actions = {}
  
  export default {
    //命名空间
    namespaced: true,
    state,
    getters,
    mutations,
    actions,
  }
  